from types import MethodType

from poium import Page, Element
from globaltest import Global


def output(self, key, value):
    Global.UI_global.update({key: value})


def input(self, key):
    return Global.UI_global.get(key, None)


Page.output = MethodType(output, Page)
Page.input = MethodType(input, Page)
